import request from '@/utils/request'

// 查询报价系数规则列表
export function listQuotationCoefficientRule(query) {
  return request({
    url: '/ys/quotationCoefficientRule/list',
    method: 'get',
    params: query
  })
}

// 查询报价系数规则详细
export function getQuotationCoefficientRule(id) {
  return request({
    url: '/ys/quotationCoefficientRule/' + id,
    method: 'get'
  })
}

// 新增报价系数规则
export function addQuotationCoefficientRule(data) {
  return request({
    url: '/ys/quotationCoefficientRule',
    method: 'post',
    data: data
  })
}

// 修改报价系数规则
export function updateQuotationCoefficientRule(data) {
  return request({
    url: '/ys/quotationCoefficientRule',
    method: 'put',
    data: data
  })
}

// 删除报价系数规则
export function delQuotationCoefficientRule(id) {
  return request({
    url: '/ys/quotationCoefficientRule/' + id,
    method: 'delete'
  })
}
